<script setup>
import { ref } from 'vue'
const dialogTableVisible = ref(false)
const gridData =ref([])
const open = (row) => {
  gridData.value = null
  gridData.value = row.orderList
  dialogTableVisible.value = true
}
defineExpose({
  open
})
</script>

<template>
  <div>
    <el-dialog v-model="dialogTableVisible" title="Shipping address" width="800">
      <el-table :data="gridData">
        <el-table-column label="序号" type="id" />
        <el-table-column property="name" label="商品名称"  />
        <el-table-column label="商品图片">
          <template #default="scope">
            <img :src="scope.row.image" alt="" style="width: 50px; height: 50px;">
          </template>
        </el-table-column>
        <el-table-column property="amount" label="商品价格" />
        <el-table-column property="number" label="商品数量" />
      </el-table>
    </el-dialog>
  </div>
</template>